﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.SponsorsSummary" Title=""
    StylesheetTheme="SkinFile" Codebehind="SponsorsSummary.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="Admin >> Sponsors summary" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="PageTitleLabel" runat="server" Text="Admin >> Sponsors summary" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">

        <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
        <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" >
            <LayoutTemplate>
                <asp:Image ID="itemPlaceholder" runat="server" />           
            </LayoutTemplate>
            <EmptyDataTemplate>
                No data was returned.
            </EmptyDataTemplate>
            <ItemTemplate>
                <asp:Label ID="SponsorNameLabel" runat="server" Text="Sponsor name" SkinID="InfoLabel"></asp:Label>
                <asp:LinkButton ID="SponsorNameLinkButton" runat="server" Text='<%# Eval("Name") %>'
                    PostBackUrl='<%# Eval("SponsorId", "Sponsor.aspx?SponsorId={0}") %>' SkinID="TitleLink"></asp:LinkButton>
                <br />
                <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# Bind("ImageFileName") %>'
                    NavigateUrl='<%#Eval("Link") %>' Target="_blank"></asp:HyperLink>
                <br />
                <asp:Label ID="ContractsLimitTitleLabel" runat="server" Text="Contracts Limit:" SkinID="InfoLabel"></asp:Label>
                <asp:Label ID="ContractsLimitLabel" runat="server" Text='<%# Eval("ContractsLimit") %>'
                    SkinID="SmallHeaderLabel" />
                <br />
                <asp:Label ID="CurrentContractsTitleLabel" runat="server" Text="CurrentContracts:"
                    SkinID="InfoLabel"></asp:Label>
                <asp:Label ID="CurrentContractsLabel" runat="server" Text='<%# Eval("CurrentContracts") %>'
                    SkinID="SmallHeaderLabel" />
                <br />
                <asp:Label ID="PriorityTitleLabel" runat="server" Text="Priority:" SkinID="InfoLabel"></asp:Label>
                <asp:Label ID="PriorityLabel" runat="server" Text='<%# Eval("Priority") %>' SkinID="SmallHeaderLabel" />
                <br />
                <asp:Label ID="CurrentSuggestionsTitleLabel" runat="server" Text="Current Suggestions:"
                    SkinID="InfoLabel"></asp:Label>
                <asp:Label ID="CurrentSuggestionsLabel" runat="server" Text='<%# Eval("CurrentSuggestions") %>'
                    SkinID="SmallHeaderLabel" />                    
        
            </ItemTemplate>
            <ItemSeparatorTemplate>
                  <hr />
            </ItemSeparatorTemplate>
        </asp:ListView>
        <br />
        <br />
        <asp:LinkButton ID="AddNewSponsoraspxLinkButton" runat="server" SkinID="TitleLink"
            PostBackUrl="~/AddNewSponsor.aspx">Add New Sponsor</asp:LinkButton>
        <br />
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetSponsorsList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </div>
    </div>
    
</asp:Content>
